package my.android.util.r2;


public class AndroidArray extends java.lang.Object
{
	public static final String DEBUG_TAG = "AndroidArray";
	
	public static void shiftArray(int[] src, int shift)
	{
		int len = src.length;
		int index_crnt = 0;
		int tempArray[] = new int[ len ];
		
		for (index_crnt=0 ; index_crnt<len ; index_crnt++)
		{	
			tempArray[(index_crnt+shift)%12] = src[index_crnt];
		}
		
		for (index_crnt=0 ; index_crnt<len ; index_crnt++)
		{
			src[index_crnt] = tempArray[index_crnt];
		}
	}
	
	public static void clear( int[] array )
	{
		int size = array.length;
		
		for( int i = 0; i < size; i++ )
		{
			array[i] = '\0';
		}
		
		return;
	}
	
	public static void clear( int[] array , int value)
	{
		int size = array.length;
		
		for( int i = 0; i < size; i++ )
		{
			array[i] = value;
		}
		
		return;
	}
	

}